<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

namespace builder\menu\util\row_events;

use builder\helper\App;

/**
 * 定义类
 * @author cleverstone
 * @since ym2.0
 */
abstract class RowEventType
{
    /**
     * @return array
     */
    abstract public function _toArray();

    /**
     * RBAC检查
     * @param string $route 路由或外链
     * @return bool
     */
    protected function checkAccess($route)
    {
        return App::rbacManager()->permissionValidate($route);
    }
}